package sctu.edu.java.year2016.team04.luoxinghua.day20160522.chapter6_2;

/**
 * Created by 落叶的思恋 on 2016/5/23.
 * import java.util.Scanner;
 * public class deletekg {
 * public static void main(String[] args) {
 * Scanner scanf= new Scanner (System.in);
 * String ss=scanf.nextLine();
 * ss=ss.replaceAll(" ","");
 * System.out.println(ss);
 * }
 * }
 */
/**import java.util.Scanner;
 public class deletekg {
 public static void main(String[] args) {
 Scanner scanf= new Scanner (System.in);
 String ss=scanf.nextLine();
 ss=ss.replaceAll(" ","");
 System.out.println(ss);
 }
 }
 */

import java.util.Scanner;

public class deletekg {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        System.out.println("输入字符串 ");
        String srr = s.nextLine();
        char ss[] = srr.toCharArray();
        int n=srr.length();
        char []last=new char[n];
        for (int i = 0; i < ss.length; i++) {
            if (ss[i] !=' ')
            { last[i]=ss[i];}
            for (int j = 0; j < last.length; j++)
                System.out.print(" delete the blank space after "+last);

        }
    }

}